package org.example.server.impl;

import org.example.entity.User;
import org.example.mapper.UserMapper;
import org.example.server.UserServer;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author 季舟
 * @Date 2024-09-05 10:58
 */
@Service
public class UserServerImpl implements UserServer {
    @Resource
    UserMapper userMapper;
    @Override
    public String add() {
        User user = new User();
        user.setName("张三");
        userMapper.insert(user);
        return user.toString();
    }
}
